<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet"/>
<title>New Faculty page</title>
</head>
<body>
  <nav class="navbar navbar-inverse" role="navigation">
  <ul class="nav navbar-nav">
      <li class="active"><a href="${pageContext.request.contextPath}/register/list.html">Job</a></li>
      <li><a href="${pageContext.request.contextPath}/faculty/list.html">Faculty</a></li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
       <li><a href="${pageContext.request.contextPath}/register/list.html">Cancel</a></li>
    </ul>
</nav>


<form:form method="POST" commandName="register" action="${pageContext.request.contextPath}/register/create.html" >

<div class="panel panel-default">
  <div class="panel-heading">Title</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Title:</td>
<td><form:input path="position.title" /></td>
<td><form:errors path="position.title" cssStyle="color: red;"/></td>
</tr>
</tbody>
</table>
  </div>
</div>


<div class="panel panel-default">
  <div class="panel-heading">Position Information</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Type:</td>
<td><form:input path="position.type" /></td>
<td><form:errors path="position.type" cssStyle="color: red;"/></td>
<td>Department:</td>
<td><form:input path="position.department" /></td>
<td><form:errors path="position.department" cssStyle="color: red;"/></td>
<td>Hourly Rate:</td>
<td><form:input path="position.hourlyRate" /></td>
<td><form:errors path="position.hourlyRate" cssStyle="color: red;"/></td>
</tr>
</tbody>
</table>
  </div>
</div>

<div class="panel panel-default">
  <div class="panel-heading">Times Available (Format: 10:00:00)</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Sunday To:</td>
<td><form:input path="schedule.sundayTo" /></td>
<td><form:errors path="schedule.sundayTo" cssStyle="color: red;"/></td>
<td>Sunday From:</td>
<td><form:input path="schedule.sundayFrom" /></td>
<td><form:errors path="schedule.sundayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Monday To:</td>
<td><form:input path="schedule.mondayTo" /></td>
<td><form:errors path="schedule.mondayTo" cssStyle="color: red;"/></td>
<td>Monday From:</td>
<td><form:input path="schedule.mondayFrom" /></td>
<td><form:errors path="schedule.mondayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Tuesday To:</td>
<td><form:input path="schedule.tuesdayTo" /></td>
<td><form:errors path="schedule.tuesdayTo" cssStyle="color: red;"/></td>
<td>Tuesday From:</td>
<td><form:input path="schedule.tuesdayFrom" /></td>
<td><form:errors path="schedule.tuesdayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Wednesday To:</td>
<td><form:input path="schedule.wednesdayTo" /></td>
<td><form:errors path="schedule.wednesdayTo" cssStyle="color: red;"/></td>
<td>Wednesday From:</td>
<td><form:input path="schedule.wednesdayFrom" /></td>
<td><form:errors path="schedule.wednesdayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Thursday To:</td>
<td><form:input path="schedule.thursdayTo" /></td>
<td><form:errors path="schedule.thursdayTo" cssStyle="color: red;"/></td>
<td>Thursday From:</td>
<td><form:input path="schedule.thursdayFrom" /></td>
<td><form:errors path="schedule.thursdayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Friday To:</td>
<td><form:input path="schedule.fridayTo" /></td>
<td><form:errors path="schedule.fridayTo" cssStyle="color: red;"/></td>
<td>Friday From:</td>
<td><form:input path="schedule.fridayFrom" /></td>
<td><form:errors path="schedule.fridayFrom" cssStyle="color: red;"/></td>
</tr>

<tr>
<td>Saturday To:</td>
<td><form:input path="schedule.saturdayTo" /></td>
<td><form:errors path="schedule.saturdayTo" cssStyle="color: red;"/></td>
<td>Saturday From:</td>
<td><form:input path="schedule.saturdayFrom" /></td>
<td><form:errors path="schedule.saturdayFrom" cssStyle="color: red;"/></td>
</tr>
  </div>
</div>
</tbody>
</table>
  </div>
</div>


<td><input type="submit" value="Create" /></td>
</form:form>
</body>
</html>